package cn.fjsay.java.demo8;

public class demoTest8 {
    public static void main(String[] args) {
        Circle circle = new Circle(8.0);
        Ladder ladder = new Ladder(7.0, 4.0, 9.0);

        ComputerArea computerArea = new ComputerArea();
        double circleArea = computerArea.getArea(circle);
        double ladderArea = computerArea.getArea(ladder);

        System.out.println("圆的面积：" + circleArea);
        System.out.println("梯形的面积：" + ladderArea);
    }
}